<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Pallass Admin</title>

<link href="public/css/bootstrap.min.css" rel="stylesheet">
<link href="public/font-awesome/css/font-awesome.css" rel="stylesheet">

<link href="public/css/animate.css" rel="stylesheet">
<link href="public/css/style.css" rel="stylesheet">

<!-- Mainly scripts -->
<script src="public/js/jquery-2.1.1.js"></script>
<script src="public/js/bootstrap.min.js"></script>
<script src="public/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="public/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

<!-- Custom and plugin javascript -->
<script src="public/js/inspinia.js"></script>
<script src="public/js/plugins/pace/pace.min.js"></script>
<script src="public/js/plugins/layui/layui.js"></script>


<script src="public/js/plugins/vue/vue.min.js"></script>
</head>
<body class="gray-bg">

	<div class="middle-box text-center loginscreen animated fadeInDown">
		<div>
			<div>
				<h4 class="logo-name">P A</h4>
			</div>
			<h3>Welcome to Pallass Admin</h3>
						
			<form class="m-t" role="form" name='f' th:action='@{/login}' method='POST'>
				<div class="input-group form-group">
					<label class="input-group-addon" for="username"><i class="fa fa-user"></i></label>
					<input type="text" name="username" class="form-control" placeholder="Username"	required>
				</div>
				<div class="input-group form-group">
					<label class="input-group-addon" for="password"><i class="fa fa-lock"></i></label> 
					<input type="password" name="password" class="form-control" placeholder="Password" required>
				</div>
				
				<input name="submit" class="btn btn-primary block full-width m-b" type="submit" value="Login"/>
				<input type="hidden" name="${_csrf.parameterName}" 	value="${_csrf.token}" />
				<!-- 
				<a href="#"><small>Forgot password?</small></a>
				 -->
			</form>
			<div th:if="${error} != null"><p style="color: red">您填写的帐号或密码不正确，请再次尝试</p></div>
			<p class="m-t">
				<small>Henan Pallass Network Co., Ltd. &copy;2017</small>
			</p>
		</div>
	</div>
	
	<script type="text/javascript">
		if(window != top) {
			top.location.href = location.href;
		}
	</script>

</body>
</html>